<html>
<head>
<title> 
<? $pageTitle ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=<? $html_encoding ?>">
<link href="<? "styles.css"|stylesetitem:"classic":$styleSet ?>" rel="stylesheet" type="text/css">
<script src="../../../common/html/classic/styles/WebSubMenu.js"></script>
<script src="../../../common/html/classic/styles/popupmenu.js"></script>

<script language="JavaScript">
<!--

	function fillSelected()
	{
		arr = new Array('includedFields[]');
		fillSelectedLists( arr );
	}

//-->
</script>

</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focusFormControl( 'FILE' )">
<? strip ?>
<form action="<? $formLink ?>" method="post" enctype="multipart/form-data" name="form">
  <? include file="../../../common/html/classic/header.htm"?>
  <? include file="../../../common/html/classic/errblock.htm" errorStr=$errorStr ?>
  <? if !$fatalError ?>

		<? if !$done ?>
			<!-- Export file form -->

				<table cellpadding=0 cellspacing=4 border=0>
					<tr>
						<td><? $kernelStrings.ecl_form_label|cat:":" ?></td>
					</tr>
					<tr>
						<td style="height: 5px"></td>
					</tr>
					<tr>
						<td style="padding-left: 20px"><input type=radio <? switchedOutput val=$exportMode true_val=0 str1="checked " ?> name=exportMode value=0>&nbsp;<? $kernelStrings.eul_selectedusers_label|cat:" ("|cat:$showSelected|cat:")" ?></td>
					</tr>
					<tr>
						<td style="padding-left: 20px">
							<table cellpadding=0 cellspacing=0 border=0>
								<tr>
									<td><input type=radio <? switchedOutput val=$exportMode true_val=1 str1="checked " ?> name=exportMode value=1>&nbsp;</td>
									<td>
										<? if $objectType == "searchresult" ?>
											<? $kernelStrings.ecl_searchresult_label ?>
										<? else ?>
											<? $kernelStrings.ecl_group_label|cat:":&nbsp;" ?>
										<? /if ?>
									</td>
									<td>
										<? if $objectType != "searchresult" ?>
											<select class="control" name="currentSrcId">
												<? html_options values=$srcIds output=$srcNames selected=$currentSrcId ?>
											</select>
										<? /if ?>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td style="padding-left: 20px"><input type=radio <? switchedOutput val=$exportMode true_val=2 str1="checked " ?> name=exportMode value=2>&nbsp;<? $kernelStrings.eul_entire_label ?></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>

				<table cellpadding=0 cellspacing=4 border=0>
					<tr>
						<td valign=middle><? $kernelStrings.ecl_separator_label|cat:":" ?></td>
						<td>
							<select name="separator" class="control">
								<? html_options values=$separatorIDs selected=$separator output=$separatorNames ?>
							</select>&nbsp;
						</td>
					</tr>
					<tr>
						<td colspan=2>&nbsp;</td>
					</tr>
				</table>

				<table cellpadding=0 cellspacing=4 border=0>
					<tr>
						<td><? $kernelStrings.ecl_exportfields_label|cat:":" ?></td>
					</tr>
					<tr>
						<td style="height: 5px"></td>
					</tr>
					<tr>
						<td style="padding-left: 20px">
							<table cellpadding=1 cellspacing=0 border=0>
								<tr>
									<td class=readonly_control><? $kernelStrings.ecl_included_label ?></td>
									<td>&nbsp;</td>
									<td class=readonly_control><? $kernelStrings.ecl_notincluded_label ?></td>
								</tr>
								<tr>
									<td>
										<select name="includedFields[]" size="10" style="width: 233px" class="control" multiple ondblclick="moveComboItems('includedFields[]', 'notincludedFields[]')">
											<? html_options values=$includedFields output=$includedFieldNames ?>
										</select>
									</td>
									<td>
										<p><a href="javascript: moveComboItems('notincludedFields[]', 'includedFields[]' )"><img src="<? "images/buttons/moveLeft.gif"|stylesetitem:"classic":$styleSet ?>" width="30" height="22" border="0"></a><br>
										<a href="javascript: moveComboItems('includedFields[]', 'notincludedFields[]' )"><img src="<? "images/buttons/moveRight.gif"|stylesetitem:"classic":$styleSet ?>" width="30" height="22" border="0"></a>
										</p>
									</td>
									<td>
										<select name="notincludedFields[]" size="10" style="width: 232px" class="control" multiple ondblclick="moveComboItems('notincludedFields[]', 'includedFields[]')">
											<? html_options values=$notincludedFields output=$notincludedFieldNames ?>
										</select>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>

			<input type=hidden name=fileFormat value=-1>

			<? include file="../../../common/html/classic/button.htm" align="left" name="savebtn" caption=$kernelStrings.app_ok_btn formname="form" space_right=10 onClick="fillSelected()" ?>
			<? include file="../../../common/html/classic/button.htm" align="left" name="cancelbtn" caption=$kernelStrings.app_cancel_btn formname="form"?>
		<? else ?>
			<!-- Download form -->

			<p><? $kernelStrings.eul_download_label ?></p>
			<p><b><a target="_blank" href="<? $link ?>"><? $kernelStrings.ecl_download_link ?></a></b></p>
			<? include file="../../../common/html/classic/button.htm" link="" align="left" name="cancelbtn" caption=$kernelStrings.eul_return_btn formname="form"?>

		<? /if ?>
	<? else ?>
			<? include file="../../../common/html/classic/button.htm" align="left" name="cancelbtn" caption=$kernelStrings.app_cancel_btn formname="form"?>
  <? /if ?>
  <input type="hidden" name="btndummy">
  <input type="hidden" name="edited" value="1">

  <input type="hidden" name="selectedObj" value="<? $selectedObj ?>">
  <input type="hidden" name="objType" value="<? $objType ?>">

  <input type="hidden" name="doclist" value="<? $doclist ?>">
<?include file="../../../common/html/classic/pagefooter.htm"?>
</form>
<? /strip ?>
</body>
</html>
